package com.koron.css2.newProjectCenter.mapper;


import com.koron.css2.newProjectCenter.bean.PjpubMaterialDocument;
import com.koron.css2.newProjectCenter.bean.query.PjpubMaterialDocumentQuery;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Author: 苏小龙
 * @CreateTime: 2024-12-04
 * @Description: 材料单据表
 * @Version: 1.0
 */
public interface PjpubMaterialDocumentMapper {
    List<PjpubMaterialDocument> getList(PjpubMaterialDocumentQuery query);

    int deleteById(String id);

    PjpubMaterialDocumentQuery getSingle(String id);

    int insert(PjpubMaterialDocumentQuery doc);

    int update(PjpubMaterialDocumentQuery doc);

    @Update("update pub_material_document set status = #{status} where id = #{id} and is_deleted = false")
    int updateStatusById(@Param("id") String id, @Param("status") String status);
}
